<?php

class config
{
	static private $config;
	
	static function init()
	{
			$db = db::getDbIstance();
		
			$res = $db->query("SELECT config_name, config_value FROM config");
			while(list($config_name, $config_value) = $db->fetch_row($res))
			{
				self::$config[$config_name] = $config_value;
			}
			

			
	}
	
	static function setconfig($name, $value)
	{
		
	}
	
	static function getconfig($name)
	{
		if(self::$config[$name]){return self::$config[$name];}
		else{return FALSE;}
	}
}
?>